<br /><br />

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />    <title>Agregar nuevo Cliente - Booking</title>    
</head>
<body>
	<div id="content">
	    <form class="pure-form pure-form-aligned" enctype="application/x-www-form-urlencoded" action="<?php echo $this->url(array('controller'=>'Client',
            'action'=>'add'));?>" method="post">
 			
 			<fieldset>
 	           	<legend>Agregar nuevo Cliente</legend>
    			<div class="pure-control-group">
        			<label for="cedula" class="required">C&eacute;dula </label>    
					<input type="text" name="cedula" value="" id="cedula" placeholder="C&eacute;dula" />
				</div>
				<div class="pure-control-group">
        			<label for="nombre" class="required">Nombre</label>    
					<input type="text" name="nombre" value="" id="nombre" placeholder="Nombre" />
				</div>
				 <div class="pure-control-group">
                        <label for="date" class="required">Fecha Nacimiento</label>    
                        <input name= 'date' id= 'date' type="text" value = "" placeholder="Fecha Nacimiento"/>
                    </diV>
				<div class="pure-control-group">
        			<label for="telefono" class="required">T&eacute;lefono</label>    
					<input type="text" name="telefono" value="" id="telefono" placeholder="T&eacute;lefono" />
				</div>
				<div class="pure-control-group">
        			<label for="correo" class="required">Correo</label>    
					<input type="text" name="correo" value="" id="correo" placeholder="Correo" />
				</div>
				
			</fieldset>
			<fieldset>
 	           	<legend>Asignar Veh&iacute;culo</legend>
 	           	 <div class="pure-g-r">
 	           	 	<?php if(count($this->myVehicles) != 0 ):?>
	           	 	 	<?php foreach($this->myVehicles as $index=>$vehicle) : ?>
			            <div class="pure-u-1-3">  
			               <div class="pure-control-group">		               		
			                    <label for="nombre" class="required"><?php echo $this->escape($vehicle['marca']);?> - Placa <?php echo $this->escape($vehicle['placa']);?></label>	
			                    <input type="checkbox" name="vehiculo[]" checked value="<?php echo $this->escape($vehicle['placa']);?>" />                    
			                </div>
			            </div>	
			            <?php endforeach; ?>
		            <?php endif ?> 	 
		            <?php if(count($this->vehicles) != 0 ):?>
	           	 	 	<?php foreach($this->vehicles as $index=>$vehicle) : ?>
			            <div class="pure-u-1-3">  
			               <div class="pure-control-group">		               		
			                    <label for="nombre" class="required"><?php echo $this->escape($vehicle['marca']);?> - Placa <?php echo $this->escape($vehicle['placa']);?></label>	
			                    <input type="checkbox" name="vehiculo[]" value="<?php echo $this->escape($vehicle['placa']);?>" />                    
			                </div>
			            </div>	
			            <?php endforeach; ?>
		            <?php endif ?>                          
		        </div>
		        <div class="pure-control-group">
					<label ></label>
					<input class="pure-button pure-button-primary" type="submit" name="submit" id="submitbutton" value="Agregar"/>
				</div>
			
           	</fieldset>
		</form>
	</div>
</body>
</html>